WPGraphQL\Registry\TypeRegistry C

Total Complexity 112
Dependencies 137
Dependents 65
Total lines 1,056
Lines of code 541
Logical lines of code 333
Comment lines 375
Methods 29
Properties 4

Methods 29

Method Rating Maintainability Complexity Lines of code
init_type_registry()
D
22
24 226
prepare_field()
A
44 13 44
register_type()
A
47 11 35
prepare_type()
A
49 10 31
prepare_fields()
S
59 7 14
register_field()
S
48 4 37
register_fields()
S
64 6 9
setup_type_modifiers()
S
60 4 15
register_connections_from_config()
S
59 4 14
get_excluded_types()
S
67 3 7
list_of()
S
65 3 10
deregister_field()
S
64 2 11
get_unmodified_type_name()
S
68 2 7
non_null()
S
69 2 7
get_type()
S
64 2 9
get_eager_type_map()
S
67 2 8
init()
S
61 1 12
has_type()
S
79 1 3
get_types()
S
79 1 3
format_key()
S
80 1 3
register_union_type()
S
75 1 4
register_input_type()
S
75 1 4
register_enum_type()
S
75 1 4
register_interface_type()
S
75 1 4
register_object_type()
S
75 1 4
register_connection()
S
80 1 3
register_mutation()
S
75 1 4
register_scalar()
S
75 1 4
__construct()
S
74 1 5